package com.chuang.server.controller;


import com.alibaba.fastjson.JSONObject;
import com.chuang.server.pojo.ResultBean;
import com.chuang.server.pojo.ResultPageBean;
import com.chuang.server.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 账单表 前端控制器
 * </p>
 *
 * @author vicente
 * @since 2022-01-15
 */
@RestController
@RequestMapping("/bill")
public class BillController {

    @Autowired
    private BillService billService;

    @ResponseBody
    @GetMapping("/billList")
    public ResultBean billList(){
        return billService.billList();
    }

    @ResponseBody
    @PostMapping("/pageList")
    public ResultPageBean pageList(@RequestBody JSONObject jsonObject){
        return billService.pageList(jsonObject);
    }

}
